package com.juefeng.SMS.pojo;

import java.net.InetAddress;

import com.juefeng.pojo.base.RpcBaseParameter;



public class SmsRequestParameter extends RpcBaseParameter {
	
	   

	private static final long serialVersionUID = 1L;
	
	public SmsRequestParameter(String projectName, String sessionId){
		super.setProjectIp(getcurrentIp()) ;
		super.setProjectName(projectName);
		super.setRequestId(Thread.currentThread().getId()+"");
		super.setSessionId(sessionId);
	}
	
	private String getcurrentIp(){
		String Ip = null;
		InetAddress ia=null;
		try {
			ia=InetAddress.getLocalHost();
			Ip=ia.getHostAddress();
		} catch (Exception e) {
			return null;
		}
		return Ip;
	}

}
